package com.neuedu.ud.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 项目：      springboot
 * 类名:       AppConfig
 * 创建时间：  2024/3/28 15：38
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
@Configuration
public class AppConfig  implements WebMvcConfigurer {


    /**
     * http://localhost:8080/ud/down/7cb20eb73ccc4177adb2c80ad2f907d6.png     D:\\upload\boot\\7cb20eb73ccc4177adb2c80ad2f907d6.png
     * http://localhost:8080/ud/down/64a97a3bfc954286b117d3021d47113e.png     D:\\upload\boot\\64a97a3bfc954286b117d3021d47113e.png
     * @param registry
     *
     *
     */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/down/**").addResourceLocations("file:D:\\upload\\boot\\");
    }
}
